package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account     string `gorm:"type:varchar(20)" json:"account"`
	Password    string `gorm:"type:char(32)" json:"password"`
	Mobile      string `gorm:"type:char(11);unique;not null" json:"mobile"`
	HeadImage   string `gorm:"type:varchar(200)" json:"headImage"`
	NickName    string `gorm:"type:varchar(10)" json:"nickName"`
	PayPassword string `gorm:"type:char(6)" json:"payPassword"`
	Role        int    `gorm:"type:int(1) default 0" json:"role"`
}
